<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./assets/css/profile.css">
    <!--核心插件样式-->
    <link rel="stylesheet" href="./assets/css/notiflix.css">

    <!-- jquery  -->
    <script src="./assets/js/jquery.min.js"></script>

    <!-- axios  -->
    <script src="./assets/js/axios.min.js"></script>

    <!-- 提示插件 -->
    <script src="./assets/js/notiflix-1.3.0.min.js"></script>

    <!-- 请求接口封装文件 -->
    <script src="./util/request.js"></script>
    <style>
        .recharge_hurg ul {
            flex-direction: row;
            width: 100%;
            flex-wrap: wrap;
            display: flex;
            justify-content: center;
        }

        .recharge_hurg ul li {
            list-style-type: none;
            width: 29.5%;
            margin-right: 2%;
            border-radius: 0.5rem;
            height: 2.5rem;
            text-align: center;
            line-height: 2.5rem;
            margin-bottom: 1rem;
            border: 2px green solid;
            color: green;
        }

        .recharge_hurg ul li:nth-child(3n) {
            margin-right: 0 !important;
        }

        .recharge_hurg_price {
            width: 100%;
            text-align: center;
            margin: 1.25rem 0;
        }

        .recharge_hurg_price span {
            color: green;
            font-weight: 600;
            font-size: 23px;
        }

        .recharge_btn {
            width: 96%;
            background: green;
            color: white;
            height: 2.5rem;
            border-radius: 0.5rem;
            text-align: center;
            line-height: 2.5rem;
            font-size: 1.25rem;
        }

        .recharge_hurg ul input {
            list-style-type: none;
            width: 100%;
            margin-right: 2%;
            border-radius: 7px;
            height: 35px;
            text-align: center;
            line-height: 40px;
            border-style: none;
            text-shadow: none;
            -webkit-appearance: none;
            box-shadow: none;
            outline: none;
            color: green;
            font-size: 1.1rem;
        }

        ::-webkit-input-placeholder {
            /* WebKit, Blink, Edge */
            color: #aaa;
        }

        :-moz-placeholder {
            /* Mozilla Firefox 4 to 18 */
            color: #aaa;
            opacity: 1;
        }

        ::-moz-placeholder {
            /* Mozilla Firefox 19+ */
            color: #aaa;
            opacity: 1;
        }

        :-ms-input-placeholder {
            /* Internet Explorer 10-11 */
            color: #aaa;
        }
    </style>
</head>

<body>
    <div class="headerbox">
        <div class="header" style="z-index: 99;">
            <div class="headerL">
                <a href="my.html" class="goback"><img src="./assets/images/goback.png" /></a>
            </div>
            <div class="headerC">
                <p>充值中心</p>
            </div>
            <div class="headerR"></div>
        </div>
    </div>
    <div class="recharge_hurg">
        <ul>
            <li class="bechoice" 
                @click="choicePrice(index,item.price)">{{item.price}}元</li>
            <li>
                <input id="otheramount" type="number" placeholder="其他金额" onclick="choiceother" v-model="question"
                    onkeyup="this.value=this.value.replace(/\D/g,'')"
                    oninput="  if(value>999999)value=999999;if(value.length>7)value=value.substring(0,7)">
            </li>
            <p class="recharge_hurg_price">
                充值金额：
                <span>{{thePrice}}.00</span><span style="color: black;">元</span>
            </p>
            <div class="recharge_btn" @click="wxpaly">微信充值</div>
    </div>
</body>

</html>
<script>
    $(document).ready(function () {
        let LoginUser = JSON.parse(localStorage.getItem('LoginUser'));
        console.log(LoginUser)
        if (JSON.stringify(LoginUser) === "{}" || LoginUser == null) {
            Notiflix.Notify.Failure("未登陆，请先去登陆");
            location.href = "login.html"
        }

    })
</script>